package com.recharge.core.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.recharge.core.entity.MerchantEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author reagan
 * @since 2020-08-19
 */
@Mapper
public interface MerchantMapper extends BaseMapper<MerchantEntity> {

    /**
     * 查询商户列表
     * @param page
     * @param param
     * @return
     */
    IPage<MerchantEntity> selectInfoPage(Page<MerchantEntity> page, @Param("entity") MerchantEntity param);

    /**
     * 查询单个商户
     * @param id
     * @return
     */
    MerchantEntity getById(String id);
}
